#include <stdio.h>
#include <stdlib.h>

void main()
{
    int x = 10, y = 20, z = 30;

    /* if (x>y) z=x,
    x=y; y=z; */

    if (x > y)
        z = x,
        x = y;
    y = z;

#define MIN(x, y) (x) < (y) ? (x) : (y)
    int i = 10, j = 15, k;
    k = 10 * MIN(i, j); //k = 10 * (x) < (y) ? (x) : (y)  宏定义只是对表达式替换而已
                        //k = 100 < 15 ? 10 :15 结果为 15
    printf("%d\n", k);

    system("pause");
}